/*
 * @Description: 入口文件
 * @Author: wangqi
 * @Date: 2021-03-02 20:50:57
 * @LastEditTime: 2021-04-17 11:20:33
 */
import Vue from 'vue'
import App from './App.vue'
import router from './router/index'

import calc from './util/index'
console.log(calc.sum(1,2), "sum")

// let calc = require('./util/index');
// console.log(calc.default.sum(1, 2));




// 动态打包的方式，对应会单独生产chunk模块文件
// /* webpackChunkName: 'wqhashChunk' */  => 是用来生产文件的name  js/[name]-[chunkhash:6].chunk.js
// import(); 也可作懒加载方式   webpackPrefetch: true; 用作预加载方式
// import(/* webpackChunkName: 'wqhashChunk', webpackPrefetch: true */'./c').then(({ obj }) => {
//     console.log(obj, "res");
// });
// console.log(,"xxxx")


@log
class A {
    a = 1;
}
let a = new A();
console.log(a.a);

function log(target) {
    console.log(target, "target")
}

var vm = new Vue({
    el: "#app",
    data: {
        msg: '123111'
    },
    render: c => c(App),
    router
})